from django.db import models


class successfullyMessage(models.TextChoices):
    PhoneCreated = "user create successful"
    PhoneLoginSuccess = "user login successful"
    PhoneLogoutSuccess = "user logout successful"
    PhoneSetPassword = "user set password successful"
    PhoneCodeSuccess = "user set code successful"
    UserPermissionException = "There are not enough user rights"


class errorMessage(models.TextChoices):
    PhoneRepeat = "用户手机号以被注册"
    phoneNotFound = "用户手机号未注册，请前往注册"
    phonePassword = "用户密码错误,请重置密码或重新核对您的密码"
    phoneCodeNotSuccessful = "user set code Not successful"
    UserTokenError = "请先前往进行登录"
    userLoginHeaderExamined = """请求头中没有 “AcceptAnces”，请在请求头中添加相关数据，或者“AcceptAnces”为空，“AcceptAnces”的长度最大长度为30个字符长度"""
